package com.service.service;

import com.service.demo.SnmpServer;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class InitListenSnmp implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("容器启动了，snmp监听9001");
        new SnmpServer("udp:0.0.0.0/9001", "test", "SHA", "testauth", "AES-128", "testpriv");
    }
}
